package com.ruoyi.system.mapper;

import com.ruoyi.system.domain.NursingRecord;

import java.util.List;

import org.apache.ibatis.annotations.Param;
import tk.mybatis.mapper.common.Mapper;

/**
 * 护理记录
 */
public interface NursingRecordMapper extends Mapper<NursingRecord> {
    /**
     * 批量更新
     * @param list list
     * @return int
     */
    int updateBatch(@Param("list") List<NursingRecord> list);

    /**
     * 批量更新 selective
     * @param list list
     * @return int
     */
    int updateBatchSelective(@Param("list") List<NursingRecord> list);

    /**
     * 批量插入
     * @param list list
     * @return int
     */
    int batchInsert(@Param("list") List<NursingRecord> list);

    /**
     * 批量插入 selective
     * @param list list
     * @return int
     */
    int batchInsertSelectiveUseDefaultForNull(@Param("list") List<NursingRecord> list);

    /**
     * 批量插入或更新
     * @param list list
     * @return int
     */
    int batchInsertOrUpdate(@Param("list") List<NursingRecord> list);

    /**
     * 批量插入或更新 selective
     * @param record record
     * @return int
     */
    int insertOrUpdate(NursingRecord record);

    /**
     * 批量插入或更新 selective
     * @param record record
     * @return int
     */
    int insertOrUpdateSelective(NursingRecord record);
}